package com.wtwd.campus.service;

import com.wtwd.campus.common.RespCodeEntity;
import com.wtwd.campus.entity.Attendance;
import com.wtwd.campus.entity.AttendanceProduct;
import com.wtwd.campus.entity.AttendanceProductVO;
import com.wtwd.campus.model.vo.PageDataVO;

public interface AttendanceProductService {

    /**
     * 获取考勤机列表
     * @param schoolId
     * @param productNo
     * @param currPage
     * @param pageSize
     * @return
     */
    PageDataVO<AttendanceProductVO> getAttendanceProductList(Integer schoolId,String productNo,Integer currPage,Integer pageSize);

    /**
     * 添加考勤机
     * @param attendanceProduct 考勤机设备对象
     * @param userId 当前用户ID
     * @return
     */
    RespCodeEntity addAttendanceProduct(AttendanceProduct attendanceProduct,Integer userId);

    /**
     * 删除考勤机
     * @param productId
     * @return
     */
    RespCodeEntity deleteAttendanceProduct(Integer productId);

    /**
     * 更新考勤机信息
     * @param attendanceProduct
     * @return
     */
    RespCodeEntity updateAttendance(AttendanceProduct attendanceProduct);

    /**
     * 根据考勤机编号获取考勤机
     * @param proNO
     * @return
     */
    AttendanceProduct getAttendanceProductByProNo(String proNO);

}
